package com.yznmall.mall.service.impl;

import com.yznmall.mall.dao.ProductCategoryDao;
import com.yznmall.mall.dto.ProductCategoryExecution;
import com.yznmall.mall.entity.ProductCategory;
import com.yznmall.mall.exceptions.ProductCategoryOperationException;
import com.yznmall.mall.service.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {

    @Autowired
    ProductCategoryDao productCategoryDao;
    @Override
    public List<ProductCategory> productCategoryList(Long shopId) {

        return productCategoryDao.queryProductCategory(shopId);
    }

    @Override
    public ProductCategoryExecution batchAddProductCategory(List<ProductCategory> productCategoryList) throws ProductCategoryOperationException {
        return null;
    }
}
